/* 岗位新增接口 */
/* 移除员工和岗位的关联关系 */
export const empPositionRelationRemove=(empId,positionId)=>{
  return axios({
    url:`/org/empPosition/${empId}/${positionId}`,
    method:'delete'
  })
}
/* 根据机构id查询所有岗位 */
export const searchAllOrgPosition=(data)=>{
  return axios({
    url:`/org/orgPosition/org/${data}`,
    method:'get'
  })
}
/* 新增岗位 */
export const orgPositionNew = (data)=>{
  return axios({
    url:'/org/orgPosition',
    method:'put',
    data
  })
}
/* 删除岗位 ,级联取消岗位和人员的关联 */
export const empPositionRelationDelete=(data)=>{
  return axios({
    url:`/org/orgPosition/${data}`,
    method:'delete'
  })
}


/* 新增员工和岗位的关联关系 */
export const empPositionPositionIds = (datas,data)=>{
  return axios({
    url:`/org/empPosition/${datas}`,
    method:'post',
    data
  })
}
